//按钮点击事件
//功能路由列表
function btnonclick(type,id){
	//保存ID
	$("#id").val(id);
	//功能跳转
	switch (type){
		//-----------------------底部功能按钮--------------------------------
		case 1: // 首页
			home_h5.action="/player/1.0/h5/home/index.js";
			break;
		case 2: //功能
			home_h5.action="/player/1.0/h5/common/index.js";
			break;
		case 3: //个人
			home_h5.action="/player/1.0/h5/me/index.js";
			break;
			
			
		case 8: //实名认证
			home_h5.action="/player/1.0/h5/me/real.js";
			break;
		case 9: //身份切换
			home_h5.action="/player/1.0/h5/me/identity.js";
			break;
			
		//-------------常用功能--------调查问卷-------表单填写------资料收集----------	
		case 21: // 社保<br>代缴
			home_h5.action="/player/1.0/h5/ques/forms.js";
			break;
		
		//------------------------电商功能-------------------------------		
		case 22: 
			home_h5.action="/player/1.0/h5/shop/forms.js";
			break;		
			
		//------------------------文章分类功能-------------------------------	
		case 23: // 代驾<br>装备
			home_h5.action="/player/1.0/h5/material/forms.js";
			break;	
			
			
		//------------------------优惠券功能-------------------------------	
		case 31: // 代驾<br>装备
			home_h5.action="/player/1.0/h5/coupons/forms.js";
			break;
			
		//------------------------活动分类功能-------------------------------	
		case 32: // 代驾<br>装备
			home_h5.action="/player/1.0/h5/activity/forms.js";
			break;			
			
		//------------------------投票功能-------------------------------	
		case 33: // 代驾<br>装备
			home_h5.action="/player/1.0/h5/vote/forms.js";
			break;
			
		//------------------------广告发布功能-------------------------------	
		case 35: // 代驾<br>装备
			home_h5.action="/player/1.0/h5/adsense/forms.js";
			break;

			
		//------------------------特殊功能-------------------------------	
		case 51: // 微人事
			home_h5.action="/player/1.0/h5/home/index.js";
			break;
				
		
		//------------------------游戏功能-------------------------------	
		case 61: // 庄园<br>农场
			home_h5.action="/player/1.0/sfg/home/index.js";
			break;
		case 62: // 梦幻<br>卡片
			home_h5.action="/player/1.0/h5/game/index.js";
			break;
		case 63: // 星空<br>传奇
			home_h5.action="/player/1.0/h5/game/index.js";
			break;
		case 64: // 英雄<br>命运
			home_h5.action="/player/1.0/h5/game/index.js";
			break;
		case 65: // 无尽<br>战争
			home_h5.action="/player/1.0/h5/game/index.js";
			break;
		case 66: // 休闲<br>社区
			home_h5.action="/player/1.0/h5/game/index.js";
			break;
			
			
		//------------------------消息功能-------------------------------	
		case 98: // 
			home_h5.action="/player/1.0/h5/common/message.js";
			break;
		//------------------------短信验证码-------------------------------	
		case 99: //
			home_h5.action="/player/1.0/h5/common/sms.js";
			break;
		//------------------------默认地址---------------------------		
		default:
			home_h5.action = "/player/1.0/h5/home/index.js";
			break;
		}
	
	//打开页面
	home_h5.submit();
}